﻿Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Drawing
Imports System.Net.Sockets

Module TCPIPMod
    Public Enum Events
        Connected = 0
        Disconnected = 1
        ImageArrived = 2
        errEncounter = 3
        OnConnection = 4
        LostConnection = 5
    End Enum

    Public Structure EventArgs
        Dim EventT As Events
        Dim Arg As Object

        ''' <summary>
        ''' Initializes a new instance of the <see cref="EventArgs"/> struct.
        ''' </summary>
        ''' <param name="e">The e.</param>
        ''' <param name="a">A.</param>
        Public Sub New(ByVal e As Events, Optional ByVal a As Object = Nothing)
            EventT = e
            Arg = a
        End Sub
    End Structure
End Module
